home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Sprocket Framework DR2 / Sprocket Starter / SprocketStarter Code / FuturesDemo.h < prev    next >
Text File  |  1996-03-13  |  705b  |  30 lines

  1. #ifndef __FUTURESDEMO__
  2. #define __FUTURESDEMO__
  3.  
  4. #ifndef __APPLEEVENTS__
  5. #include <AppleEvents.h>
  6. #endif
  7.  
  8. #define kSillyEventClass    'sily'
  9. #define kPingEvent            'ping'
  10. #define kPing1Event            'png1'
  11. #define kPing2Event            'png2'
  12.  
  13. enum
  14. {
  15.     cPing                = 998,
  16.     cPing2                = 999
  17. };
  18.  
  19. pascal OSErr HandlePing(AppleEvent question, AppleEvent answer, long handlerRefcon);
  20. pascal OSErr HandlePing1(AppleEvent question, AppleEvent answer, long handlerRefcon);
  21. pascal OSErr HandlePing2(AppleEvent question, AppleEvent answer, long handlerRefcon);
  22.  
  23. void SendSimpleAEvt(AEEventClass theAEEventClass, AEEventID theAEEventID);
  24.  
  25. pascal void InitFuturesDemo(void);
  26. pascal void CleanupFuturesDemo(void);
  27.  
  28. #endif // __FUTURESDEMO__
  29.  
  30.